<?php
/**
 *
 *
 *
 */
namespace Yz\modules\Tasklist;

class Form_Element_Parent
    extends \Yz_Form_Element_ForeignKey
{

    /**
     *
     *
     */
    protected function loadOptions()
    {
        debug();
        $element = $this->element;
        $model = $element->getModel();
        try {
            $options = $model->fetchTopLevel();
        } catch (\NotFoundError $ex) {
            $options = array();
        }
        return $options;
    }


}
